package com.dao;

import com.bean.*;

import java.util.List;

public interface PurchaseDao {
    Purchase purchaseInit(User user,Supplier supplier);

    List<PurchaseInfo> getAllGoods(Purchase purchase);

    int addGoods(Goods goods,int number,Purchase purchase);

    int deleteGoods(int key);

    int updateGoodsNumber(int key,int number);

    int inWarehouse(List<PurchaseInfo> purchaseInfos);

    boolean haveNotInPurchaseExist(User user,Supplier supplier);

    boolean isGoodsExist(Goods goods);

    List<Purchase> getAllPurchase();

    Purchase getSelectPurchase(int key);

    List<PurchaseInfo> getPurchaseInfo(Purchase purchase);

    List<Purchase> getFindPurchase(String supplier,String startDate,String endDate);
}
